package com.rykj.energy.database.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName("basic_meter")
@ApiModel("仪表信息")
public class BasicMeter extends BasePojo{

    @ApiModelProperty("主键")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "仪表名称" )
    @TableField(value = "meterName")
    private String meterName;

    @ApiModelProperty(value = "仪表类型:电压表，水压表，温度表" )
    @TableField(value = "meterType")
    private String meterType;

    @ApiModelProperty(value = "仪表编码" )
    @TableField(value = "meterCode")
    private String meterCode;

    @ApiModelProperty(value = "仪表算法对应的类型" )
    @TableField(value = "distType")
    private String distType;

    @ApiModelProperty(value = "数据类型:指针，数字" )
    @TableField(value = "dataType")
    private String dataType;

    @ApiModelProperty(value = "删除状态:normal,deleted" )
    @TableField(value = "delStatus")
    private String delStatus;

    @ApiModelProperty(value = "摄像头id" )
    @TableField(value = "cameraId")
    private Integer cameraId;

    @ApiModelProperty(value = "预置位id" )
    @TableField(value = "presetId")
    private Integer presetId;

    @ApiModelProperty(value = "区域id" )
    @TableField(value = "orgId")
    private Integer  orgId;

    @ApiModelProperty(value = "是否显示首页" )
    @TableField(value = "isPageShow")
    private String isPageShow;

    @ApiModelProperty(value = "指针表最小刻度" )
    @TableField(value = "minVal")
    private String minVal;

    @ApiModelProperty(value = "指针表最大刻度" )
    @TableField(value = "maxVal")
    private String maxVal;


    @ApiModelProperty(value = "创建时间" )
    @TableField(value = "createDate")
    private Date createDate;

    @ApiModelProperty(value = "仪表矩形位置，json字符串格式{\"startX\": 500,  \"startY\": 0,\"height\": 700, \"width\": 1000}" )
    @TableField(value = "rectSeat")
    private String  rectSeat;

    @ApiModelProperty(value = "仪表图片URL" )
    @TableField(value = "meterImgUrl")
    private String meterImgUrl;

    @ApiModelProperty(value = "要替换首页展示的仪表id" )
    @TableField(exist=false)
    private Integer repShowPageId;

    @ApiModelProperty(value = "仪表数据" )
    @TableField(exist=false)
    private List<BasicMeterData> meterDatas;

//    @ApiModelProperty(value = "仪表数据识别结果详情" )
//    @TableField(exist=false)
//    private List<MeterResultDetail> meterResultDetails;

}
